import fetch from "utils/fetch";

export function getMessageList(query) {
  return fetch({
    url: "http://localhost:7001/api/v2/messages",
    method: "get",
    params: query
  });
}
export function addMessage(query) {
  return fetch({
    url: "http://localhost:7001/api/v2/messages",
    method: "post",
    data: query
  });
}
